package server;

import applet.Client;
import bomberman.Game;
import bomberman.User;
import bomberman.img.ImageDB;
import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 *
 * @author eirikb
 */
public interface Server extends Remote {

    boolean registerUser(Client client, User user) throws RemoteException;

    void connect() throws RemoteException;

    ImageDB getImageDB() throws RemoteException;
    
    void disconnect(String nick) throws RemoteException;
    
    void publicChat(String message) throws RemoteException;
    
    boolean createGame(String nick, Game game) throws RemoteException;
    
    boolean joinGame(String nick, String gameName) throws RemoteException;
    
    void leaveGame(String nick) throws RemoteException;
    
    void setReady(String nick, boolean ready) throws RemoteException;
}
